/**
 * 
 */
package com.idea.auction.service;

import com.idea.auction.model.Admin;
import com.idea.auction.model.User;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.server.BaseService;

/**
 * @author y.z
 */
public class UserService extends BaseService<User> {
	
	/**
	 * 获取分页
	 * @param curPage
	 * @return
	 */
	public Page<User> getPage(int curPage){
		return super.getPage(curPage, "select *", " from user where 1=1 order by join_date desc ");
	}
	
	
	/**
	 * 修改用户
	 * @param user
	 * @return
	 */
	public boolean update(User user){
		return super.update(user);
	}
	
}
